package example.com.zyfypt_618zgm.model;


import retrofit2.Call;

import example.com.zyfypt_618zgm.iface.AddFocusiface;
import example.com.zyfypt_618zgm.service.AddFocusService;
import retrofit2.Retrofit;
import retrofit2.converter.scalars.ScalarsConverterFactory;

/**
 * Created by 小茗同学 on 2017/6/1.
 */

public class AddFocusModel implements AddFocusiface {
    private Retrofit retrofit;
    private String BASEURL="http://amicool.neusoft.edu.cn/";
    public AddFocusModel() {
        retrofit =new Retrofit.Builder().baseUrl(BASEURL).addConverterFactory(ScalarsConverterFactory.create()).build();
    }

    @Override
    public Call<String> getResult(String mod, int idolid, String sessionID) {
        AddFocusService addFocusService =retrofit.create(AddFocusService.class);
        return addFocusService.focus(mod,idolid,sessionID);
    }
}
